﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000C29 RID: 3113
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MuseumTakeCollectRewardScRsp : IMessage<MuseumTakeCollectRewardScRsp>, IMessage, IEquatable<MuseumTakeCollectRewardScRsp>, IDeepCloneable<MuseumTakeCollectRewardScRsp>, IBufferMessage
	{
		// Token: 0x17002739 RID: 10041
		// (get) Token: 0x06008B23 RID: 35619 RVA: 0x001723A3 File Offset: 0x001705A3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MuseumTakeCollectRewardScRsp> Parser
		{
			get
			{
				return MuseumTakeCollectRewardScRsp._parser;
			}
		}

		// Token: 0x1700273A RID: 10042
		// (get) Token: 0x06008B24 RID: 35620 RVA: 0x001723AA File Offset: 0x001705AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MuseumTakeCollectRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700273B RID: 10043
		// (get) Token: 0x06008B25 RID: 35621 RVA: 0x001723BC File Offset: 0x001705BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MuseumTakeCollectRewardScRsp.Descriptor;
			}
		}

		// Token: 0x06008B26 RID: 35622 RVA: 0x001723C3 File Offset: 0x001705C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MuseumTakeCollectRewardScRsp()
		{
		}

		// Token: 0x06008B27 RID: 35623 RVA: 0x001723CC File Offset: 0x001705CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MuseumTakeCollectRewardScRsp(MuseumTakeCollectRewardScRsp other) : this()
		{
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.retcode_ = other.retcode_;
			this.itemId_ = other.itemId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008B28 RID: 35624 RVA: 0x00172424 File Offset: 0x00170624
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MuseumTakeCollectRewardScRsp Clone()
		{
			return new MuseumTakeCollectRewardScRsp(this);
		}

		// Token: 0x1700273C RID: 10044
		// (get) Token: 0x06008B29 RID: 35625 RVA: 0x0017242C File Offset: 0x0017062C
		// (set) Token: 0x06008B2A RID: 35626 RVA: 0x00172434 File Offset: 0x00170634
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x1700273D RID: 10045
		// (get) Token: 0x06008B2B RID: 35627 RVA: 0x0017243D File Offset: 0x0017063D
		// (set) Token: 0x06008B2C RID: 35628 RVA: 0x00172445 File Offset: 0x00170645
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700273E RID: 10046
		// (get) Token: 0x06008B2D RID: 35629 RVA: 0x0017244E File Offset: 0x0017064E
		// (set) Token: 0x06008B2E RID: 35630 RVA: 0x00172456 File Offset: 0x00170656
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemId
		{
			get
			{
				return this.itemId_;
			}
			set
			{
				this.itemId_ = value;
			}
		}

		// Token: 0x06008B2F RID: 35631 RVA: 0x0017245F File Offset: 0x0017065F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MuseumTakeCollectRewardScRsp);
		}

		// Token: 0x06008B30 RID: 35632 RVA: 0x00172470 File Offset: 0x00170670
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MuseumTakeCollectRewardScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.Reward, other.Reward) && this.Retcode == other.Retcode && this.ItemId == other.ItemId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008B31 RID: 35633 RVA: 0x001724D0 File Offset: 0x001706D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.ItemId != 0U)
			{
				num ^= this.ItemId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008B32 RID: 35634 RVA: 0x0017253E File Offset: 0x0017073E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008B33 RID: 35635 RVA: 0x00172546 File Offset: 0x00170746
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008B34 RID: 35636 RVA: 0x00172550 File Offset: 0x00170750
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Retcode);
			}
			if (this.ItemId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.ItemId);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.Reward);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008B35 RID: 35637 RVA: 0x001725C4 File Offset: 0x001707C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.ItemId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008B36 RID: 35638 RVA: 0x00172634 File Offset: 0x00170834
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MuseumTakeCollectRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.ItemId != 0U)
			{
				this.ItemId = other.ItemId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008B37 RID: 35639 RVA: 0x001726B0 File Offset: 0x001708B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008B38 RID: 35640 RVA: 0x001726BC File Offset: 0x001708BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 40U)
					{
						if (num != 106U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							if (this.reward_ == null)
							{
								this.Reward = new ItemList();
							}
							input.ReadMessage(this.Reward);
						}
					}
					else
					{
						this.ItemId = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400352C RID: 13612
		private static readonly MessageParser<MuseumTakeCollectRewardScRsp> _parser = new MessageParser<MuseumTakeCollectRewardScRsp>(() => new MuseumTakeCollectRewardScRsp());

		// Token: 0x0400352D RID: 13613
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400352E RID: 13614
		public const int RewardFieldNumber = 13;

		// Token: 0x0400352F RID: 13615
		private ItemList reward_;

		// Token: 0x04003530 RID: 13616
		public const int RetcodeFieldNumber = 1;

		// Token: 0x04003531 RID: 13617
		private uint retcode_;

		// Token: 0x04003532 RID: 13618
		public const int ItemIdFieldNumber = 5;

		// Token: 0x04003533 RID: 13619
		private uint itemId_;
	}
}
